<template>
  <div>
    <my-component :value="msg" @input="msg = $event"></my-component>
    <my-component v-model="msg"></my-component>
  </div>
</template>

<script>
import MyComponent from './MyComponent.vue'

export default {
  components: {
    MyComponent
  },
  data: () => ({
    msg: 'Hello world!'
  })
}
</script>
